import { ADD } from './actions';
const defaultData = {
  number: 1,
};
export const addReducer = (state: any, action: any) => {
  switch (action.type) {
    case ADD: {
      return {
        ...state,
        number: state.number + 1,
      };
    }
    default:
      return state;
  }
};
